package com.yx.louti.web.controller;

import com.yx.louti.web.bean.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 姚天下
 * @version 1.0
 * @description: TODO
 * @date 2022/2/11 10:14
 */
@Api(tags = "测试")
@RestController
@RequestMapping("/test")
public class TestController {

    @ApiOperation("测试方法test")
    @GetMapping("test1")
    public User test1(){
        User user = new User();
        user.setAccount("清泉采梦");

        return user;
    }
}
